#ifndef SUPPLIER_H
#define SUPPLIER_H

#include <QWidget>
#include "personsupplier.h"

class InquireSql;
class AddModifySupplier;
class QTableWidgetItem;
//class QString;

namespace Ui {
class Supplier;
}

class Supplier : public QWidget
{
    Q_OBJECT
    
public:
    explicit Supplier(QWidget *parent = 0);
    ~Supplier();
    void displaySupplier();

private slots:
    void slotDisplaySupplier();

signals:
    void updateComboBoxSupplier();

protected:
    void keyPressEvent(QKeyEvent *);

private slots:
    void on_pushButtonNew_clicked();
    void on_pushButtonModity_clicked();
    void on_pushButtonDelete_clicked();
    void on_tableWidgetSupplier_itemDoubleClicked(QTableWidgetItem *);

private:
    void setTableWidgetColor();
    Ui::Supplier *ui;
    InquireSql *m_sql;
    supplierList m_list;
    AddModifySupplier *m_addModifySupplier;
};

#endif // SUPPLIER_H
